//
//  CustomDrawViewController.m
//  OurJourney
//
//  Created by 李沛池 on 2017/4/7.
//  Copyright © 2017年 Godlike. All rights reserved.
//

#import "CustomDrawViewController.h"
#import "CustomDrawView.h"
#import "LPCTools.h"

@interface CustomDrawViewController ()

@property (weak, nonatomic) IBOutlet CustomDrawView *customDrawView;
@property (weak, nonatomic) IBOutlet UIView *photoView;

@end

@implementation CustomDrawViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
}

//清空画布
- (IBAction)clearDrawView:(UIButton *)sender
{
    [self.customDrawView clean];
}

//保存图片到相册
- (IBAction)saveDrawView:(UIButton *)sender
{
    [LPCTools saveImageWithView:_photoView];
}









@end
